package com.easy.common.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easy.common.bean.Goods;

import java.util.List;

public interface IGoodsService extends IService<Goods> {
    Goods getGoodsById(int id);
    Goods getGoodsByName(String name);
    
    // 新增方法
    int addGoods(Goods goods);
    int updateGoods(Goods goods);
    int deleteGoods(Integer id);
    int reverseStatus(Integer id);
    List<Goods> getAll(Goods goods);
    IPage<Goods> getPage(Goods goods, IPage page);
    List<Goods> getGoodsByCategory(String category);
}
